import request from "@/utils/request";

export const getRuleList = (params) => {
  return request({
    url: "/eva/v1/rule/list",
    method: "get",
    params,
  });
};

export const createRule = (data) => {
  return request({
    url: "/eva/v1/rule/create",
    method: "post",
    data,
  });
};

export const updateRule = (data) => {
  return request({
    url: "/eva/v1/rule/update",
    method: "post",
    data,
  });
};

export const deleteRule = (data) => {
  return request({
    url: "/eva/v1/rule/delete",
    method: "post",
    data,
  });
};
